<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN"> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<%@ include file="/common/taglib.jsp" %>
<%@ include file="/common/common.jsp" %>    
<base href="<%=basePath%>">
<title>鸿福迎门</title>
<link rel="stylesheet" href="bootstrap-3.3.5/css/bootstrap.min.css">
<!--渐隐样式-->
<link rel="stylesheet" href="play/css/luara.css"/>
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="jquery-1.11.3/jquery.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="bootstrap-3.3.5/js/bootstrap.min.js"></script>
<!--Luara js文件-->
<script src="play/js/jquery.luara.0.0.1.min.js"></script>
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/slider.js"></script>
<link rel="stylesheet" href="css/lrtk.css" type="text/css"/>
<script type="text/javascript" src="js/cs_q.js"></script>
<style type=text/css>
	body{
		background-color:#f1f5f8;
		padding-top: 0px;
		margin-top: 0px;
	}
	.bottom{
		background-color:rgba(188, 243, 171, 0.85);
		text-align:center ;
		vertical-align:middle ;
		height:35px;
	}
	.case{
		margin-top:20px;
	}
	.case_content table{
		width : 31%;
		margin-right : 17px;
		float:left;
	}
	.know{
		 clear:both ;
		 padding-top:10px;
	}
	.case_title{
		border:1px #fff solid;
		background-color:#fff;
	}
	.play{
		margin-top:10px;
	}

	.knowlist{
		margin-top: 10px;
	}
	.more{
		font-size: 15px;
		margin-left: 5px;
	}	
	.flexslider {
	margin: 0px auto 20px;
	position: relative;
	width: 100%;
	height: 482px;
	overflow: hidden;
	zoom: 1;
	}

	.flexslider .slides li {
		width: 100%;
		height: 100%;
	}

	.flex-direction-nav a {
		width: 70px;
		height: 70px;
		line-height: 99em;
		overflow: hidden;
		margin: -35px 0 0;
		display: block;
		background: url(images/ad_ctr.png) no-repeat;
		position: absolute;
		top: 50%;
		z-index: 10;
		cursor: pointer;
		opacity: 0;
		filter: alpha(opacity=0);
		-webkit-transition: all .3s ease;
		border-radius: 35px;
	}

	.flex-direction-nav .flex-next {
		background-position: 0 -70px;
		right: 0;
	}

	.flex-direction-nav .flex-prev {
		left: 0;
	}

	.flexslider:hover .flex-next {
		opacity: 0.8;
		filter: alpha(opacity=25);
	}

	.flexslider:hover .flex-prev {
		opacity: 0.8;
		filter: alpha(opacity=25);
	}

	.flexslider:hover .flex-next:hover,
	.flexslider:hover .flex-prev:hover {
		opacity: 1;
		filter: alpha(opacity=50);
	}

	.flex-control-nav {
		width: 100%;
		position: absolute;
		bottom: 10px;
		text-align: center;
	}

	.flex-control-nav li {
		margin: 0 2px;
		display: inline-block;
		zoom: 1;
		*display: inline;
	}

	.flex-control-paging li a {
		background: url(images/dot.png) no-repeat 0 -16px;
		display: block;
		height: 16px;
		overflow: hidden;
		text-indent: -99em;
		width: 16px;
		cursor: pointer;
	}

	.flex-control-paging li a.flex-active,
	.flex-control-paging li.active a {
		background-position: 0 0;
	}

	.flexslider .slides a img {
		width: 100%;
		height: 430px;
		
	}
	.process{
		width: 100%;
	    border: 1px solid #ccc;
	    height: 84px;
	    line-height:84px;
	    background-color: #fff;
	}
	.i1{
		width: 27px;
		height: 27px;
		margin-top:25px;
		background:transparent url(images/icon.png) no-repeat scroll -27px -153px;
	}
	.i2{
		width: 27px;
		height: 27px;
		margin-top:25px;
		background:transparent url(images/icon.png) no-repeat scroll -56px -153px;
	}
	.i3{
		width: 23px;
		height: 24px;
		margin-top:25px;
		background:transparent url(images/icon.png) no-repeat scroll -2px -155px;
	}
	.i4{
		width: 26px;
		height: 26px;
		margin-top:25px;
		background:transparent url(images/icon.png) no-repeat scroll -88px -154px;
	}
	.i5{
		width: 24px;
		height: 25px;
		margin-top:25px;
		background:transparent url(images/icon.png) no-repeat scroll -116px -154px;
	}
	.abc{
		width: 9px;
		height: 34px;
		background:transparent url(images/icon.png) no-repeat scroll -3px -184px;
		float: left;
		margin-left: 50px;
		margin-top: 25px;
	}
	.p{
		float: left;
		margin-left: 5px;
	}
</style>
<script type="text/javascript">
$(function() {
	$("#index").addClass("active"); //添加样式
	var bannerSlider = new Slider($('#banner_tabs'), {
		time: 5000,
		delay: 400,
		event: 'hover',
		auto: true,
		mode: 'fade',
		controller: $('#bannerCtrl'),
		activeControllerCls: 'active'
	});
	$('#banner_tabs .flex-prev').click(function() {
		bannerSlider.prev()
	});
	$('#banner_tabs .flex-next').click(function() {
		bannerSlider.next()
	});
})
function showRequire(){
	location.href="<%=basePath%>index/require.html"
}
</script>
<body>
<jsp:include page="/index/head.html"></jsp:include>
<div class="container">
	<div class="body">
		<div class="play">
		<div id="banner_tabs" class="flexslider">
	<ul class="slides">
		<c:forEach items="${plays }" var="p">
			<li>
				<a title="${p.title }" target="_blank" href="play/show.html?playType=${p.playType }&playId=${p.playId}&flag=${p.playType}" >
					<img width="1920" height="482" alt="" style="background: url(images/banner1.jpg) no-repeat center;" src="${p.src }" title="${p.title }">
				</a>
			</li>
		</c:forEach>
	</ul>
	<ul class="flex-direction-nav">
		<li><a class="flex-prev" href="javascript:;">Previous</a></li>
		<li><a class="flex-next" href="javascript:;">Next</a></li>
	</ul>
	<ol id="bannerCtrl" class="flex-control-nav flex-control-paging">
		<c:forEach items="${plays }" var="p" varStatus="v">
			<li><a>${v.index }</a></li>
		</c:forEach>
	</ol>
</div>
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/slider.js"></script>
<script type="text/javascript">
$(function() {
	var bannerSlider = new Slider($('#banner_tabs'), {
		time: 5000,
		delay: 400,
		event: 'hover',
		auto: true,
		mode: 'fade',
		controller: $('#bannerCtrl'),
		activeControllerCls: 'active'
	});
	$('#banner_tabs .flex-prev').click(function() {
		bannerSlider.prev()
	});
	$('#banner_tabs .flex-next').click(function() {
		bannerSlider.next()
	});
})
</script>
		</div>
		<div class="process">
			<div class="col-lg-2"><div class="i1" style="float: left;"></div><div class="p">预约咨询</div><div class="abc"></div></div>
			<div class="col-lg-2"><div class="i2" style="float: left;"></div><div class="p">上门量房</div><div class="abc"></div></div>
			<div class="col-lg-2"><div class="i3" style="float: left;"></div><div class="p">方案设计</div><div class="abc"></div></div>
			<div class="col-lg-2"><div class="i4" style="float: left;"></div><div class="p">施工安装</div><div class="abc"></div></div>
			<div class="col-lg-2"><div class="i5" style="float: left;"></div><div class="p">售后服务</div><div class="abc"></div></div>
			<div class="col-lg-2"><span type="button" class="btn btn-danger" style="width: 170px;height: 40px;" onclick="javascript:showRequire()">立即预约量房</span></div>
		</div>
		<div class="case">
			<h4>装修案例<a href="index/case.html"><span class="more">更多>></span></a></h4>
			<div class="case_content">
				<c:forEach items="${cs }" var="c">
				<table style="margin-top: 10px;">
					<tr>
						<td><a href="index/caseDesc.html?id=${c.id }&flag=case"><img src="${c.coverPhoto }" width="100%" height="250px"/></a></td>
					</tr>
					<tr>
						<td class="case_title">
							<table style="width:100%">
								<tr><td><a href="index/caseDesc.html?id=${c.id }">${c.houseName }</a></td></tr>
								<tr><td><span>${c.styleValue }</span><span style="margin-left:10px;">${c.size }平米</span><span style="margin-left:10px;">${c.budget }万</span></td></tr>
							</table>
						</td>
					</tr>
				</table>
			</c:forEach>
			</div>
		</div>
		<div class="know">
			<h4>装修常识<a href="index/knowledge.html"><span class="more">更多>></span></a></h4>
			<c:forEach items="${ks }" var="k">
				<table class="knowlist" >
				<tr>
					<td>
						<a href="index/knowledgeDesc.html?kId=${k.id }"><img src="${k.coverPhoto }" width="100" height="100"/></a>
					</td>
					<td valign="top" style="padding-left:5px;" width="100%">
						<table>
							<tr>
								<td><div class="know_content_t"><a href="index/knowledgeDesc.html?kId=${k.id }">${k.title }</a></div></td>
							</tr>
							<tr>
								<td><div class="know_content_c">
								${fn:substring(k.content, 0, 200)}<span style="margin-left: 3px;">[<a href="index/knowledgeDesc.html?kId=${k.id }">详细</a>]</span>
							</div></td>
							</tr>
							<tr>
								<td><div class="know_content_time">${k.createDate }  浏览(${k.readCount})</div></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>	
			</c:forEach>
		</div>
	</div>
	<jsp:include page="/index/qqService.html"></jsp:include>
</div>
<jsp:include page="/index/bottom.html"></jsp:include>
</body>
</html>
